<div class="adminnavi">
  <a href="./index.php"><{$smarty.const._MI_MILEAGE_LANG_MILEAGE}></a>
  &raquo;&raquo; <a href="./index.php?action=RecList"><{$smarty.const._MD_MILEAGE_LANG_REC_LIST}></a>
</div>


<h3>
  <{$smarty.const._MD_MILEAGE_LANG_REC_LIST}> 
  <{if $smarty.get.uid > 0}>
    &nbsp;&raquo;&nbsp;<{$smarty.get.uid|intval}> : <{$smarty.get.uid|xoops_user:uname}> (Total: <{$totalPoint}> <{$smarty.const._MD_MILEAGE_LANG_POINT}>)
  <{/if}>
  <{if $smarty.get.mile_id}>
    &nbsp;&raquo;&nbsp;<{$smarty.const._MD_MILEAGE_LANG_MILE_ID}> : <{$smarty.get.mile_id|intval}>
  <{/if}>
</h3>

<div class="pagenavi"><{xoops_pagenavi pagenavi=$pageNavi}></div>

<table class="outer">
  <thead>
    <tr>
      <th>
        <{$smarty.const._MD_MILEAGE_LANG_REC_ID}><br />
        <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.MILEAGE_REC_SORT_KEY_REC_ID}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
        <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.MILEAGE_REC_SORT_KEY_REC_ID}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a>
      </th>

      <th>
        <{$smarty.const._MD_MILEAGE_LANG_POINT}><br />
        <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.MILEAGE_REC_SORT_KEY_POINT}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
        <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.MILEAGE_REC_SORT_KEY_POINT}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a>
      </th>

      <th>
        <{$smarty.const._MD_MILEAGE_LANG_MILE_ID}><br />
        <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.MILEAGE_REC_SORT_KEY_MILE_ID}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
        <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.MILEAGE_REC_SORT_KEY_MILE_ID}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a>
      </th>

      <th>
        <{$smarty.const._MD_MILEAGE_LANG_UID}><br />
        <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.MILEAGE_REC_SORT_KEY_UID}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
        <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.MILEAGE_REC_SORT_KEY_UID}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a>
      </th>

      <th>
        <{$smarty.const._MD_MILEAGE_LANG_GET_DATE}><br />
        <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=<{$smarty.const.MILEAGE_REC_SORT_KEY_REG_UNIXTIME}>"><img src="<{"icons/up.gif"|theme}>" alt="<{$smarty.const._ASCENDING}>" title="<{$smarty.const._ASCENDING}>" /></a>
        <a href="<{$pageNavi->renderUrlForSort()}>&amp;<{$pageNavi->getPrefix()}>sort=-<{$smarty.const.MILEAGE_REC_SORT_KEY_REG_UNIXTIME}>"><img src="<{"icons/down.gif"|theme}>" alt="<{$smarty.const._DESCENDING}>" title="<{$smarty.const._DESCENDING}>" /></a>
      </th>

    </tr>
  </thead>

  <tbody>
    <{foreach item=obj from=$objects}>
      <tr class="<{cycle values='odd,even'}>">
        <td><{$obj->getShow('rec_id')}></td>
        <td><{$obj->getShow('point')}></td>
        <td>
          <a href="./index.php?action=RecList&amp;mile_id=<{$obj->getShow('mile_id')}>">
            <{$obj->getShow('mile_id')}> [<{$obj->mileName|xoops_escape}>]
          </a>
        </td>
        <td>
          <a href="./index.php?action=RecList&amp;uid=<{$obj->getShow('uid')}>">
            <{$obj->getShow('uid')}> : <{$obj->getShow('uid')|xoops_user:uname}>
          </a>
        </td>
        <td><{$obj->get('reg_unixtime')|xoops_formattimestamp:l}></td>
      </tr>
    <{/foreach}>
  </tbody>

</table>

<div class="pagenavi"><{xoops_pagenavi pagenavi=$pageNavi}></div>
